Scaled Fenwick Trees

نویسندگان

چکیده

A novel data structure that enables the storage and retrieval of linear array numeric with logarithmic time complexity updates, range sums, rescaling is introduced studied. Computing sums ranges arrays numbers a common computational problem encountered in compression, coding, machine learning, vision, finance, among other fields. Efficient structures enabling log n updates underlying (including updates), queries over ranges, searches for given sum have been extensively studied (n being length array). Two solutions to this are well-known: Fenwick trees (also known as Binary Indexed Trees) Segment Trees. The new extends capabilities first further enable multiplying (rescaling) by scalar well n. Scaling 0 can be enabled, effect subsequent may take (log n) 2 time. here consists pair interacting tree-like structures, one which holds unscaled values scalars. Experimental results demonstrating performance improvements multiplication operation on from few dozen 30 million points discussed. This research was done part Ajna Labs course developing decentralized finance protocol. It an efficient on-chain encoding processing order book-like used manage lending, interest, collateral.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Succinct Partial Sums and Fenwick Trees

We consider the well-studied partial sums problem in succint space where one is to maintain an array of n k-bit integers subject to updates such that partial sums queries can be efficiently answered. We present two succint versions of the Fenwick Tree – which is known for its simplicity and practicality. Our results hold in the encoding model where one is allowed to reuse the space from the inp...

متن کامل

Limit distribution of the degrees in scaled attachment random recursive trees

We study the limiting distribution of the degree of a given node in a scaled attachment random recursive tree, a generalized random recursive tree, which is introduced by Devroye et. al (2011). In a scaled attachment random recursive tree, every node $i$ is attached to the node labeled $lfloor iX_i floor$ where $X_0$, $ldots$ , $X_n$ is a sequence of i.i.d. random variables, with support in [0,...

متن کامل

Depth Properties of scaled attachment random recursive trees

We study depth properties of a general class of random recursive trees where each node i attaches to the random node biXic and X0, . . . , Xn is a sequence of i.i.d. random variables taking values in [0, 1). We call such trees scaled attachment random recursive trees (sarrt). We prove that the height Hn of a sarrt is asymptotically given by Hn ∼ αmax logn where αmax is a constant depending only...

متن کامل

The height of scaled attachment random recursive trees

We study depth properties of a general class of random recursive trees where each node n attaches to the random node !nXn" and X0, . . . , Xn is a sequence of i.i.d. random variables taking values in [0, 1). We call such trees scaled attachment random recursive trees (SARRT). We prove that the height Hn of a SARRT is asymptotically given by Hn ∼ αmax log n where αmax is a constant depending onl...

متن کامل

Limit Distribution of Degrees in Scaled Attachment Random Recursive Trees

We study the limiting distribution of the degree of a given node in a scaled attachment random recursive tree, a generalized random recursive tree, which is introduced by Devroye et. al (2011). In a scaled attachment random recursive tree, every node i is attached to the node labeled biXic where X0, . . . , Xn is a sequence of i.i.d. random variables, with support in [0, 1) and distribution fun...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

ژورنال

عنوان ژورنال: IEEE Access

سال: 2023

ISSN: ['2169-3536']

DOI: https://doi.org/10.1109/access.2023.3299352